/**
 * 
 */
package com.ez.supervise.dao;

import java.util.List;
import java.util.Map;

import com.ez.supervise.dao.base.BaseDao;
import com.ez.supervise.model.sys.Permission;

/**
 * @author searph.wang
 * @email searph.wang@gmail.com
 * @Created at 2009-7-22
 * 
 */
public interface PermissionDao extends BaseDao {

    /**
     * @return
     */
    List findAll();

    /**
     * @return
     */
    Map<String, Permission> findAllMenu();

    /**
     * @return
     */
    Map<String, Permission> findAllSubMenu();

    /**
     * @param userId
     * @return
     */
    List<Permission> findPermission(Long userId);

}
